﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NCMM.aspx.cs" Inherits="ShareMarking.Web.admin.EnterPrise.Employee.NCMM" %>

<%@ Import namespace="ShareMarking.Systems.Service" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>列表</title>
<script type="text/javascript" src="/scripts/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
<script type="text/javascript" src="/admin/js/layout.js"></script>
<link  href="/css/pagination.css" rel="stylesheet" type="text/css" />
<link href="/admin/skin/default/style.css" rel="stylesheet" type="text/css" />
<script src="../../../scripts/jquery/jquery.lazyload.min.js" type="text/javascript"></script>
<script>
    $(function () {
        $("img").lazyload({ effect: "fadeIn" });
    });
</script>
<script type="text/javascript">
    $(function () {
        $("#ontomore").click(function () {
            showAttachDialog();
        });
        //创建附件窗口
        function showAttachDialog(obj) {
            var objNum = arguments.length;
            var attachDialog = $.dialog({
                id: 'ontomore',
                lock: true,
                max: false,
                min: false,
                title: "绑定多图文",
                content: 'url:EnterPrise/Employee/ontomore.aspx?action=ncmm',
                width: 670,
                height: 242
            });
        }

        $("#moretoon").click(function () {
            showAttachDialog2();
        });
        //创建附件窗口
        function showAttachDialog2(obj) {
            var objNum = arguments.length;
            var attachDialog = $.dialog({
                id: 'moretoon',
                lock: true,
                max: false,
                min: false,
                title: "解绑多图文",
                content: 'url:EnterPrise/Employee/moretoon.aspx?action=ncmm',
                width: 670,
                height: 242
            });
        }

    });
</script>
</head>

<body class="mainbody">
<form id="form1" runat="server">
<!--导航栏-->
<div class="location">
  <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
  <a href="/admin/center.aspx" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <span>列表</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div class="toolbar-wrap">
  <div id="floatHead" class="toolbar">
    <div class="l-list">
      <ul class="icon-list">
       <%-- <li><a class="add" ><i></i><span>同步</span></a></li>--%>
        <li>
            <asp:LinkButton ID="btnExport" runat="server" CssClass="save" 
            OnClick="btnDownload_Click" OnClientClick=" return ConfirmPostBack('btnExport','确定要导出吗？');"><i></i><span>导出NC妈妈班</span></asp:LinkButton>       
        </li>
        <li style=" display:none"><a id="ontomore" class="save" href="javascript:"><i></i><span>绑定多图文</span></a></li>
        <li style=" display:none"><a id="moretoon" class="save" href="javascript:"><i></i><span>解绑多图文</span></a></li>
        <li>
            <asp:LinkButton ID="exportIMG" runat="server" CssClass="save" OnClick="exportIMG_Click" 
                OnClientClick=" return ConfirmPostBack('exportIMG','确定要导出吗？');"><i></i><span>导出二维码图片</span>
            </asp:LinkButton>
        </li>
        <li style=" display:none">
            <asp:LinkButton ID="btncheck" runat="server" CssClass="save" OnClick="btncheck_Click" 
                OnClientClick=" return ConfirmPostBack('btncheck','确定要校验吗？');"><i></i><span>检验</span>
            </asp:LinkButton>
        </li>
        <%--<li>
            <asp:LinkButton ID="LinkButton1" runat="server" CssClass="save" 
            OnClick="btnDownload_Click2" OnClientClick=" return ConfirmPostBack('LinkButton1','确定要导出吗？');"><i></i><span>导出NC用户信息</span></asp:LinkButton>       
        </li>--%>
      </ul>
      <div class="menu-list">
      </div>
    </div>
    <div class="r-list" style="display:none">
      <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
      <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" onclick="btnSearch_Click">查询</asp:LinkButton>
    </div>
  </div>
</div>
<!--/工具栏-->
<div class="det-list clearfix">
        <div class="group btm">
            <div class="control">
                <div class="title">
                    NC编号</div>
                <asp:TextBox ID="txtnc_code" runat="server" CssClass="input normal"></asp:TextBox>
            </div>
            <div class="control">
                <div class="title">
                    姓名</div>
                <asp:TextBox ID="txtname" runat="server" CssClass="input normal"></asp:TextBox>
            </div>
            <div class="control">
                <div class="title">
                    手机号</div>
                <asp:TextBox ID="txtphone" runat="server" CssClass="input normal"></asp:TextBox>
            </div>
            <div class="control">
                <div class="title">
                        会员状态
                </div>
                <div class="single-select">
                    <asp:DropDownList ID="ddlISdraw" runat="server" CssClass="input normal" AutoPostBack="True" AppendDataBoundItems="true" Visible="true"
                            OnSelectedIndexChanged="ddlISdraw_SelectedIndexChanged">
                            <asp:ListItem Value="true">活跃员工</asp:ListItem>  
                            <asp:ListItem Value="false" >离职员工</asp:ListItem>
                            <asp:ListItem Value="所有">所有</asp:ListItem>
                        </asp:DropDownList>
                </div>              
            </div> 
            <div class="btn-list" style="margin-left:20px">
                <asp:Button ID="btnDetailedSearch" runat="server" Text="搜索" CssClass="btn" OnClick="btnDetailedSearch_Click" />
                <%-- <input name="btnReturn" id="btn_return" type="button" value="重置" class="btn yellow"  />--%>
            </div>           
        </div>
         <div class="group btm" >
            <div class="control" style="width:800px">
                <div class="title">
                    导出代码</div>
                <asp:TextBox ID="Txt_Code" runat="server" Enabled="false" CssClass="input normal"></asp:TextBox>
                <span class="Validform_checktip">注意：格式应为['10000xxx','20000xxx','30000xxx']

</span>
            </div>         
        </div>
 </div>
<!--列表-->
<asp:HiddenField ID="Hidden_Phone" runat="server"></asp:HiddenField>
    <asp:HiddenField ID="Hidden_name" runat="server"></asp:HiddenField>
    <asp:HiddenField ID="Hiddenn_code" runat="server"></asp:HiddenField>
    <asp:HiddenField ID="Hiddenn_state" runat="server"></asp:HiddenField>
<asp:Repeater ID="rptList" runat="server">
<HeaderTemplate>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
  <tr>
    <th width="8%">NC编号</th>
    <th width="8%">姓名</th>
    <th width="8%">手机</th>
    <%--<th width="8%">Email</th>--%>
    <th width="8%">会员状态</th>
    <th width="8%">NC性质</th>
    <th width="8%">入职日期</th>
    <th width="8%">离职日期</th>
    <th width="8%">二维码</th>
    <%--<th width="8%">NCL编码</th>
    <th width="8%">NCL姓名</th>
    <th width="8%">NCL手机</th>--%>
  </tr>
</HeaderTemplate>
<ItemTemplate>
  <tr>
    <td align="center"><%#Eval("nc_code")%></td>
    <td align="center"><%#Eval("name")%></td>
    <td align="center"><%#Eval("tel")%></td>
    <%--<td align="center"><%#Eval("email")%></td>--%>
    <td align="center"><%#Eval("state")%></td>
    <td align="center"><%#Eval("nc_nature")%></td>
    <td align="center"><%#Eval("entr_date")%></td>
    <td align="center"><%#Eval("leave_date")%></td>
    <td align="center"><img width="80px" src='<%#geturl((Eval("nc_code")).ToString())%>' /></td>
    <%--<td align="center"><%#Eval("ncl_code")%></td>
    <td align="center"><%#Eval("ncl_name")%></td>
    <td align="center"><%#Eval("ncl_tel")%></td>--%>
  </tr>
</ItemTemplate>
<FooterTemplate>
  <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"14\">暂无记录</td></tr>" : ""%>
</table>
</FooterTemplate>
</asp:Repeater>
<!--/列表-->

<!--内容底部-->
<div class="line20"></div>
<div class="pagelist">
  <div class="l-btns">
    <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" ontextchanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
  </div>
  <div id="PageContent" runat="server" class="default"></div>
</div>
<!--/内容底部-->
</form>
</body>
</html>
